package com.wbu.microserviceconfigclient10010.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @date 2020/2/27 - 19:57
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private String port;
    @Value("${spring.application.name}")
    private String applicationName;


    @RequestMapping("/test")
    public String test(){
        return "port"+port+"===applicationName"+applicationName;
    }
}